import {
    getMenuList
} from '../../../request/api'
const state = {
    menulist: []
}
const getters = {
    getMenu(state) {
        return state.menulist
    }
}
const mutations = {
    REQ_MENULIST(state,payload){
        state.menulist = payload
    }
}
const actions = {
    getMenuAction({commit}) {
      getMenuList().then((res) => {
      //   console.log(res, "rrrrrrrrrr");
      commit('REQ_MENULIST',res.list)
      });
    },
  };
// const modules= {
// }

export default {
    state,
    getters,
    mutations,
    actions,
    namespaced: true
}